﻿<%@ Page Language="VB" MasterPageFile="~/evoltaSeguridad.master" AutoEventWireup="false"
CodeFile="perfilUsuario.aspx.vb" Inherits="seguridad_perfilUsuario" Title=" .:: EVOLTA | Seguridad ::. " %>

<%@ MasterType VirtualPath="~/evoltaSeguridad.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register Assembly="Flan.Controls" Namespace="Flan.Controls" TagPrefix="flan" %>
<%@ OutputCache Duration="15" VaryByParam="*" Location="Client" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style type="text/css">
#txtObservEdificioManz
{
width: 137px;
height: 71px;
}
#txtObservacionesModelo
{
width: 165px;
}
.filaEncabezadoPrincipal
{
background-image: url('../imagenes/px_td.jpg');
background-repeat: repeat;
}
.filaEncabezadoTitulo
{
background-image: url('../imagenes/submenu3.PNG');
background-repeat: repeat;
}
.filaEncabezado
{
background-image: url('../imagenes/submenu3.PNG');
background-repeat: repeat;
}
.colGrilla
{
background-image: url('../imagenes/submenu2.PNG');
height: 20px;
background-repeat: repeat;
}
#txtAreaTechada
{
height: 22px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<table style="width: 100%; background-color: #f4f4f4;" cellspacing="0">
<tr class="filaEncabezadoPrincipal">
<td>
<table width="100%">
<tr>
<td>
<asp:Label ID="Label1" runat="server" CssClass="CeldaTituloTexto" Text="Carga Stock"></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
</table>
<asp:Panel ID="pnlPerfilUsuario" runat="server" Width="100%">
<table style="width: 100%; background-color: #f4f4f4" class="EditarLabel" cellspacing="0"
cellpadding="0" border="1">
<tbody>
<tr>
<td style="width: 100%; padding-top: 5px; padding-bottom: 3px">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="filaEncabezado">
<asp:Label ID="Label17" runat="server" Text="Perfiles" SkinID="lblSubTituloTexto"
Font-Bold="True"></asp:Label>
</td>
<td>
</td>
<td class="filaEncabezado">
<asp:Label ID="Label18" runat="server" Text="Plataforma/Módulo/Actividad" SkinID="lblSubTituloTexto"
Font-Bold="True"></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:Button ID="btnAgregarPerfilUsuario" runat="server" CausesValidation="False"
SkinID="btnNormalSkin" Text="Agregar" UseSubmitBehavior="False" />
&nbsp;<asp:Button ID="btnExcelPerfilUsuario" runat="server" CausesValidation="False"
SkinID="btnNormalSkin" Text="Excel" UseSubmitBehavior="False" />
</td>
<td>
</td>
<td>
<asp:Button ID="btnAgregarOpciones" runat="server" CausesValidation="False" SkinID="btnNormalSkin"
Text="Agregar" UseSubmitBehavior="False" />
&nbsp;<asp:Button ID="btnExcelPerfilOpciones" runat="server" CausesValidation="False"
SkinID="btnNormalSkin" Text="Excel" UseSubmitBehavior="False" />
</td>
</tr>
<tr>
<td rowspan="5">
<table border="1" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td>
<div>
<table cellpadding="0" cellspacing="1" width="100%">
<tr align="center">
<td align="center" class="colGrilla" valign="middle" width="10%">
<asp:LinkButton ID="lnkBtnCodigo" runat="server" CommandArgument="idPerfilUsuario"
CommandName="idPerfilUsuario" SkinID="lnkBtnEncabezado">Código</asp:LinkButton>
</td>
<td align="center" class="colGrilla" valign="middle" width="56%">
<asp:LinkButton ID="lnkBtnNombre" runat="server" CommandArgument="descPerfilUsuario"
CommandName="descPerfilUsuario" SkinID="lnkBtnEncabezado">Nombre</asp:LinkButton>
</td>
<td align="center" class="colGrilla" valign="middle" width="14%">
<asp:LinkButton ID="lnkBtnEstadoEdificio" runat="server" CommandArgument="descEstado"
CommandName="descEstado" SkinID="lnkBtnEncabezado">Estado</asp:LinkButton>
</td>
<td align="center" class="colGrilla" valign="middle" width="10%">
<asp:Label ID="lblEliminar" runat="server" SkinID="lblEncabezado" Text="Eliminar"></asp:Label>
</td>
<td align="center" class="colGrilla" valign="middle" width="10%">
<asp:Label ID="lblVerEdificio" runat="server" SkinID="lblEncabezado" Text="Ver"></asp:Label>
</td>
</tr>
</table>
</div>
<div style="overflow-y: scroll; overflow-x: hidden; width: 100%; height: 422px; scrollbar-face-color: #B5B5B5;"
class="DivPanelGrillaCuerpo">
<asp:UpdatePanel ID="upnPerfiles" runat="server">
<ContentTemplate>
<asp:GridView ID="gvwPerfiles" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="0" DataKeyNames="idPerfilUsuario"
EnableSortingAndPagingCallbacks="True" Font-Names="Tahoma" ForeColor="Black"
GridLines="Vertical" ShowHeader="False" SkinID="gvwListaSkin" Width="99%">
<Columns>
<asp:TemplateField HeaderText="Codigo">
<ItemTemplate>
<asp:LinkButton ID="lnkCodigo" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idPerfilUsuario") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("idPerfilUsuario","{0:00000}") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="10%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="10%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Nombre">
<ItemTemplate>
<asp:LinkButton ID="lnkNombre" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idPerfilUsuario") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("descPerfilUsuario","{0:00000}") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="56%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="56%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Estado">
<ItemTemplate>
<asp:LinkButton ID="lnkEstadoPerfil" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idPerfilUsuario") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("descEstado") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="14%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="14%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Eliminar">
<ItemTemplate>
<asp:ImageButton ID="btnEliminarPerfiles" runat="server" CommandName="Delete" ImageUrl="~/Imagenes/Procesos/borrar.png"
OnClientClick="return ConfirmaEliminacion(this);" Style="cursor: pointer" ToolTip="Eliminar Perfil Usuario"
CommandArgument='<%# Eval("idPerfilUsuario") %>' />
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="10%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="10%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Ver">
<ItemTemplate>
<asp:ImageButton ID="btnVerPerfiles" runat="server" CommandArgument='<%# Eval("idPerfilUsuario") %>'
CommandName="Ver" ImageUrl="~/imagenes/Procesos/folder_go.png" Style="cursor: pointer"
ToolTip="Ver Modulos/Actividades" />
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="10%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="10%" Height="20px" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td rowspan="5">
&nbsp;
</td>
<td rowspan="5">
<table border="1" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td>
<div>
<table cellpadding="0" cellspacing="1" width="100%">
<tr>
<td align="center" class="colGrilla" valign="middle" width="15%">
<asp:LinkButton ID="lnkBtnPlataforma" runat="server" CommandArgument="Plataforma"
CommandName="nroInmueble" Height="100%" SkinID="lnkBtnEncabezado">Plataforma</asp:LinkButton>
</td>
<td align="center" class="colGrilla" valign="middle" width="15%">
<asp:LinkButton ID="lnkBtnNroPiso" runat="server" CommandArgument="nroPiso" CommandName="nroPiso"
Height="100%" SkinID="lnkBtnEncabezado">Modulo</asp:LinkButton>
</td>
<td align="center" class="colGrilla" valign="middle" width="50%">
<asp:LinkButton ID="lnkBtnValorInmueble" runat="server" CommandArgument="valorVenta"
CommandName="valorVenta" SkinID="lnkBtnEncabezado">Opciones</asp:LinkButton>
</td>
<td align="center" class="colGrilla" valign="middle" width="10%">
<asp:LinkButton ID="lnkBtnEstado" runat="server" CommandArgument="descEstado" CommandName="descEstado"
Height="100%" SkinID="lnkBtnEncabezado">Estado</asp:LinkButton>
</td>
<td align="center" class="colGrilla" valign="top" width="10%">
<asp:Label ID="lnkBtnEliminar2" runat="server" SkinID="lblEncabezado" Text="Eliminar"></asp:Label>
</td>
</tr>
</table>
</div>
<div class="DivPanelGrillaCuerpo" style="overflow-y: scroll; overflow-x: hidden;
width: 100%; height: 422px; scrollbar-face-color: #B5B5B5;">
<asp:UpdatePanel ID="upnUnidades" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="gvwOpciones" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="0"
EnableSortingAndPagingCallbacks="True" Font-Names="Tahoma" ForeColor="Black"
GridLines="Vertical" ShowHeader="False" SkinID="gvwListaSkin" Width="99%">
<Columns>
<asp:TemplateField HeaderText="Plataform">
<ItemTemplate>
<asp:LinkButton ID="lnkPlataforma" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idModuloSubModuloOpciones") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("descModulo") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="15%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="15%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Modulo">
<ItemTemplate>
<asp:LinkButton ID="lnkModulo" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idModuloSubModuloOpciones") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("descSubModulo") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="15%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="15%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="SubModulo">
<ItemTemplate>
<asp:LinkButton ID="lnkSubModulo" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idModuloSubModuloOpciones") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("descOpcion") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="50%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="50%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Estado">
<ItemTemplate>
<asp:LinkButton ID="lnkEstado" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idModuloSubModuloOpciones") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("descEstado") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="10%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="10%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Eliminar">
<ItemTemplate>
<asp:ImageButton ID="btnEliminar" runat="server" CommandArgument='<%# Eval("idModuloSubModuloOpcionesPerfil") %>'
CommandName="Delete" ImageUrl="~/Imagenes/Procesos/borrar.png" OnClientClick="return ConfirmaEliminacion(this);"
Style="cursor: pointer" ToolTip="Eliminar " />
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="9%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="9%" Height="20px" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</asp:Panel>
<ajax:ModalPopupExtender ID="mpDetallePerfilUsuario" runat="server" TargetControlID="btnAgregarPerfilUsuario"
BackgroundCssClass="modalBackground" DropShadow="True" PopupControlID="pnlIngresarPerfilUsuario"
PopupDragHandleControlID="lblTituloPerfiles" CancelControlID="btnCancelarPerfilUsuario">
</ajax:ModalPopupExtender>
<asp:Panel ID="pnlIngresarPerfilUsuario" runat="server" CssClass="modalPopup" Width="369px"
Style="display: none">
<table cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td colspan="3" bgcolor="#E44146">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:Label ID="lblTituloPerfiles" runat="server" SkinID="lblFormulario" Text="Perfil de Usuario [Registrar]"
ToolTip="Registrar"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right" valign="middle">
&nbsp;
</td>
<td rowspan="15">
&nbsp;
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel12" runat="server">
<ContentTemplate>
<asp:TextBox ID="txtIdPerfiles" runat="server" Style="display: none;"></asp:TextBox></ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right" valign="middle">
&nbsp;
<asp:Label ID="Label5" runat="server" Text="Nombre: " SkinID="lblNormal"></asp:Label>
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<input id="txtNombrePerfil" runat="server" autocomplete="off" class="CsstxtNormalObligatorio"
type="text" maxlength="22" />
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="Label92" runat="server" SkinID="lblNormal" Text="Estado Edificio: "></asp:Label>
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel50" runat="server">
<ContentTemplate>
<select id="selEstado" runat="server" class="CssddlNormal" name="selEstado">
<option></option>
</select>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right" valign="middle">
&nbsp;
<asp:Button ID="btnGuardarPerfiles" runat="server" CausesValidation="False" SkinID="btnNormalSkin"
Text="Guardar" OnClientClick="return validarPerfileUsuario();" />
</td>
<td>
<asp:Button ID="btnCancelarPerfilUsuario" runat="server" CausesValidation="False"
SkinID="btnNormalSkin" Text="Cancelar" />
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
</table>
</asp:Panel>
<ajax:ModalPopupExtender ID="mpPerfilOpciones" runat="server" TargetControlID="btnAgregarOpciones"
BackgroundCssClass="modalBackground" DropShadow="True" PopupControlID="pnlPerfilOpciones"
PopupDragHandleControlID="lblTituloPerfilesOpciones" CancelControlID="btnCancelarPerfilesOpciones">
</ajax:ModalPopupExtender>
<asp:Panel ID="pnlPerfilOpciones" runat="server" CssClass="modalPopup" Width="699px"
Height="454px" Style="display: none">
<table cellpadding="0" cellspacing="0" style="width: 100%; height: 425px;">
<tr>
<td bgcolor="#E44146">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="lblTituloPerfilesOpciones" runat="server" SkinID="lblFormulario" Text="Listado de Actividades de la Plataforma"
ToolTip="Registrar"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
<tr>
<td>
<div style="width: 100%; height: 20px; scrollbar-face-color: #B5B5B5;" class="DivPanelGrillaEncabezado">
<table cellpadding="0" cellspacing="1" width="100%">
<tr>
<td align="center" class="colGrilla" valign="middle" width="25%">
<asp:LinkButton ID="LinkButton1" runat="server" CommandArgument="Plataforma" CommandName="nroInmueble"
Height="100%" SkinID="lnkBtnEncabezado">Plataforma</asp:LinkButton>
</td>
<td align="center" class="colGrilla" valign="middle" width="25%">
<asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="Modulo" CommandName="nroPiso"
Height="100%" SkinID="lnkBtnEncabezado">Modulo</asp:LinkButton>
</td>
<td align="center" class="colGrilla" valign="middle" width="35%">
<asp:LinkButton ID="LinkButton3" runat="server" CommandArgument="Actividad" CommandName="valorVenta"
SkinID="lnkBtnEncabezado">Actividad</asp:LinkButton>
</td>
<td align="center" class="colGrilla" valign="middle" width="15%">
<asp:LinkButton ID="LinkButton4" runat="server" CommandArgument="Seleccionar" CommandName="descEstado"
Height="100%" SkinID="lnkBtnEncabezado">Seleccionar</asp:LinkButton>
</td>
</tr>
</table>
</div>
<div class="DivPanelGrillaCuerpo" style="overflow-y: scroll; overflow-x: hidden;
width: 100%; height: 349px; scrollbar-face-color: #B5B5B5;">
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<ContentTemplate>
<asp:GridView ID="gvwPerfilOpciones" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="0" EnableSortingAndPagingCallbacks="True"
Font-Names="Tahoma" ForeColor="Black" GridLines="Vertical" ShowHeader="False"
SkinID="gvwListaSkin" Width="100%">
<Columns>
<%-- <asp:TemplateField HeaderText="idModulo" Visible="false">
<ItemTemplate>
<asp:LinkButton ID="lnkidModulo" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idModuloSubModuloOpciones") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("idModulo") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="25%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="25%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="idSubModulo" Visible="false">
<ItemTemplate>
<asp:LinkButton ID="lnkidSubModulo" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idModuloSubModuloOpciones") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("idSubModulo") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="25%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="25%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="idOpcion" Visible="false">
<ItemTemplate>
<asp:LinkButton ID="lnkidOpcion" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idModuloSubModuloOpciones") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("idOpcion") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="25%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="25%" Height="20px" />
</asp:TemplateField>--%>
<asp:TemplateField HeaderText="Modulo">
<ItemTemplate>
<asp:LinkButton ID="lnkModulo" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idModuloSubModuloOpciones") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("descModulo") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="25%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="25%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="SubModulo">
<ItemTemplate>
<asp:LinkButton ID="lnkSubModulo" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idModuloSubModuloOpciones") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("descSubModulo") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="25%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="25%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Opcion">
<ItemTemplate>
<asp:LinkButton ID="lnkOpcion" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idModuloSubModuloOpciones") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("descOpcion") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="35%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="35%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Seleccionar">
<ItemTemplate>
<asp:CheckBox ID="chkSeleccionar" runat="server" CausesValidation="false" Checked=<%# Eval("Checked") %> CommandArgument='<%# Eval("idModuloSubModuloOpciones") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" />
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="14%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="14%" Height="20px" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
<tr>
<td align="right">
&nbsp;
</td>
</tr>
<tr>
<td align="right">
<asp:Button ID="btnSeleccionar" runat="server" SkinID="btnNormalSkin" Text="Seleccionar" />
&nbsp;<asp:Button ID="btnCancelarPerfilesOpciones" runat="server" SkinID="btnNormalSkin"
Text="Cancelar" />
</td>
</tr>
</table>
</asp:Panel>
<asp:UpdatePanel ID="upIdPerfil" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<input id="hdidPerfil" type="hidden" runat="server" value="0" />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="gvwPerfiles" EventName="RowCommand" />
</Triggers>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="0">
<ProgressTemplate>
<div id="divProgress" class="divProgreso">
<img src="../imagenes/ajax-loader.gif" align="middle" alt="Procesando" />
<asp:Label ID="lblprogreso" runat="server" Text=" Procesando..." CssClass="EditarLabel"></asp:Label>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
<flan:UpdateProgressOverlayExtender ID="UpdateProgressOverlayExtender1" runat="server"
CssClass="updateProgress" OverlayType="Browser" TargetControlID="UpdateProgress1"/>
<script src="../javascript/Evoltat.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
function ConfirmaEliminacion(sender) {
return confirm('¿Está seguro que desea eliminar?\n' + sender.alt);
}
function MuestraPanelPerfilUsuario() {
    
    if ($get('<%= hdidPerfil.ClientID%>').value==0){
        alert("Debe seleccionar un perfil");
        $find(mpPerfilOpciones).hide();
    return false;
    }
    else {
    limpiarControlesPerfilUsuario();
    $find(mpDetallePerfilUsuario).show();
    return true;
    }
}
function MuestraPanelPerfilOpciones() {
$find(mpPerfilOpciones).show();
return true;
}
function limpiarControlesPerfilUsuario() {
document.getElementById('ctl00$ContentPlaceHolder1$txtNombrePerfil').value = '';
document.getElementById('ctl00$ContentPlaceHolder1$selEstado').selectedIndex = 1;
document.getElementById('ctl00$ContentPlaceHolder1$selEstado').disabled = 'disabled';
}
</script>
</asp:Content>